<?php
namespace Yzadmin\Model;
use Think\Model\ViewModel;
/**
 * 文章视图模型
 */
class NewsViewModel extends ViewModel {
   public $viewFields = array(
     'News'=>array('id',"cid",'title',"click","sort","time","hot","price_click","pv","item_id"),
     'Cate'=>array('name'=>'cname', '_on'=>'News.cid=Cate.id'),
     'Yumi'=>array('url'=>'yumi_url', '_on'=>'News.yumi_id=Yumi.id'),
   );
 }
?>